﻿@model ApCMS.Models.NewsModels
@{
    ViewBag.Title = "新闻动态";
}
<div id="heroBanner">
    <a href="#">
        <img alt="" src="@Url.Content("~/Themes/ymdz/Content/images/banner.jpg")" /></a>
</div>
@if (Model != null)
{
    if (Model.ArticleCategoryList != null)
    {
    <div class="boxContainer grid_9 alpha omega">
        <h2>
            新闻列表</h2>
        <div class="grid_9 alpha">
            <div class="box above">
                <ul>
                    @foreach (var category in Model.ArticleCategoryList)
                    {
                        <li><span style="font-weight: bold">@(category.Name)</span>
                            @if (Model.ArticleList != null)
                            {
                                <ul>
                                    @foreach (var list in Model.ArticleList.Where(p => p.CategoryId == category.ID))
                                    {                              
                                        <li><a href="@Url.Action("ViewDetails", "News", new { articleId = list.ID })" style="color:#555;">@(list.Title)</a></li>                               
                                    }
                                </ul>
                            }
                        </li>                               
                    }
                </ul>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    }
}